# 1/3

a = 7
b = 3
c = ''
count = 0
print(a/b)
while True:
    diff = a - b
    if diff > 0:
        a = diff
        count += 1
    elif diff == 0:
        count += 1
        c += str(count)
        break
    else:
        a = a * 10
        c += str(count)
        count = 0
    if len(c)>10:
        break
c = c[0] + '.' + c[1:]
print(float(c))

